package com.example.newjiesai.service.Impl;

import com.example.newjiesai.entity.Term;
import com.example.newjiesai.mapper.TermMapper;
import com.example.newjiesai.service.TermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TermServiceImpl implements TermService {

    @Autowired
    private TermMapper termMapper;
    @Override
    public Term getTerminfoByImei(String Imie) {
        //System.out.println(termMapper);
        return termMapper.getTerminfoByImei(Imie);
    }
    @Override
    public int add(Term term) {
        return termMapper.add(term);
    }

    @Override
    public int update(Term term) {
        return termMapper.update(term);
    }

    @Override
    public Term getTerminfoById(Integer id)
    {
        return termMapper.getTerminfoById(id);
    }
    @Override
    public List<Term> getTerminfoList(int page, int limit)
    {

        return termMapper.getTerminfoList(page,limit);
    }
    @Override
    public List<Term> getTerminfoList2()
    {

        return termMapper.getTerminfoList2();
    }
    @Override
    public int delete(Integer id)
    {
        return termMapper.delete(id);
    }

    @Override
    public int getTerminfocount()
    {
        return termMapper.getTerminfocount();
    }


}
